import service from "@/tools/http";
export default {
  // 增加
  addUser(data: Types.User.AddUser): Promise<Types.Http.Response<string>> {
    return service({
      method: "post",
      url: "/v1/api/user",
      data
    });
  },

  // 获取用户
  getUser<T>(params: Types.User.QueryUser): Promise<Types.Http.Response<T>> {
    return service({
      method: "get",
      url: "/v1/api/user",
      params
    });
  }
};
